package com.kaiyidiannao.model.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by wzg on 14-4-22.
 * 凑对去-bean
 */
public class TourBean implements Serializable {

    //凑对去列表数据
    private String itemid; //商品编号
    private String thumb; //缩略图
    private String title; //商品名称
    private String price; //价格
    private String sales; //成交量
    private String cost; //花費
    private String company; //旅游线路推荐公司名称

    //凑对去-招集列表页数据
    private String linkurl;//链接linkurl
    private String theme;//召集主题theme

    //json结构类数据
    private String code; //返回数据表示，0表示正常，1表示错误
    private String msg; //错误提示信息

    private String catid; //当前分类编号
    private String page; //当前页码
    private String order;//排序方式
    private String mobile;
    private String telephone;

    private String top; //置顶
    private String hits; //点击量,人气

    //商品详细页面
    private String introduce; //简介
    private String truename;//
    private String username;
    private String people;//最大人数
    private String total;//已经入人数
    private String adddate;//添加时间
    private String fromtime;//开始时间
    private String totime;//结束时间
    private String[] picture;//图片
    private String traffic;//交通路线

    private boolean is_fav; // 收藏
    private boolean is_praise; // 点赞
    private boolean is_fouce; //关注
    private boolean is_join; //是否加入

    private String status;//状态

    private String addtime;

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean isIs_join() {
        return is_join;
    }

    public void setIs_join(boolean is_join) {
        this.is_join = is_join;
    }

    public void setTraffic(String traffic) {
        this.traffic = traffic;
    }

    public String getTraffic() {
        return traffic;
    }

    public boolean isIs_fouce() {
        return is_fouce;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public void setIs_fouce(boolean is_fouce) {
        this.is_fouce = is_fouce;
    }

    public boolean isIs_praise() {
        return is_praise;
    }

    public void setIs_praise(boolean is_praise) {
        this.is_praise = is_praise;
    }

    public boolean isIs_fav() {
        return is_fav;
    }

    public void setIs_fav(boolean is_fav) {
        this.is_fav = is_fav;
    }

    private List<Comment> comments =  new ArrayList<Comment>();

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPrice() {
        return price;
    }

    public ArrayList<String> getPicture2() {
        ArrayList<String> arrayList = new ArrayList<String>();
        for (int i = 0 ; picture != null && i < picture.length; ++i) {
            arrayList.add(picture[i]);
        }
        return arrayList;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSales() {
        return sales;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCatid() {
        return catid;
    }

    public void setCatid(String catid) {
        this.catid = catid;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getTop() {
        return top;
    }

    public void setTop(String top) {
        this.top = top;
    }

    public String getHits() {
        return hits;
    }

    public void setHits(String hits) {
        this.hits = hits;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getAdddate() {
        return adddate;
    }

    public void setAdddate(String adddate) {
        this.adddate = adddate;
    }

    public String getLinkurl() {
        return linkurl;
    }

    public void setLinkurl(String linkurl) {
        this.linkurl = linkurl;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String[] getPicture() {
        return picture;
    }

    public void setPicture(String[] picture) {
        this.picture = picture;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getFromtime() {
        return fromtime;
    }

    public void setFromtime(String fromtime) {
        this.fromtime = fromtime;
    }

    public String getTotime() {
        return totime;
    }

    public void setTotime(String totime) {
        this.totime = totime;
    }

    @Override
    public String toString() {
        return "TourBean{" +
                "sales='" + sales + '\'' +
                ", cost='" + cost + '\'' +
                ", linkurl='" + linkurl + '\'' +
                ", theme='" + theme + '\'' +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", catid='" + catid + '\'' +
                ", page='" + page + '\'' +
                ", order='" + order + '\'' +
                ", mobile='" + mobile + '\'' +
                ", telephone='" + telephone + '\'' +
                ", top='" + top + '\'' +
                ", hits='" + hits + '\'' +
                ", introduce='" + introduce + '\'' +
                ", truename='" + truename + '\'' +
                ", people='" + people + '\'' +
                ", adddate='" + adddate + '\'' +
                ", fromtime='" + fromtime + '\'' +
                ", totime='" + totime + '\'' +
                ", picture=" + Arrays.toString(picture) +
                ", traffic='" + traffic + '\'' +
                ", is_fav=" + is_fav +
                ", is_praise=" + is_praise +
                ", is_fouce=" + is_fouce +
                ", is_join=" + is_join +
                ", status='" + status + '\'' +
                ", comments=" + comments +
                ", price='" + price + '\'' +
                ", title='" + title + '\'' +
                ", thumb='" + thumb + '\'' +
                ", itemid='" + itemid + '\'' +
                '}';
    }
}
